package com.xyz.frame.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("xyz_weight")
public class Weight implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.INPUT)
    private String weightId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 体重
     */

    private Double weight;

    /**
     * 登记日期
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date submitDate;


    /**
     * 修改时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

}